# Maintainer: Natanael Copa <ncopa@alpinleinux.org>
pkgname=aufs-util
pkgver=20161219
pkgrel=0
pkgdesc="Utilities for aufs"
url="http://aufs.sourceforge.net/"
arch="all"
license="GPL-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://dev.alpinelinux.org/archive/aufs-util/aufs-util-$pkgver.tar.gz
	0001-implement-glibc-compatible-nftw-if-libc-does-not-pro.patch
	0002-add-aufs_type.h-from-linux-header.patch
	0003-make-install-compatible-with-busybox-install.patch
	"

builddir="$srcdir/aufs-utils"

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="345ef1643191a6de35eb3036ce41b0ea0725fd2195d4d15dcc904b449e8159fad9a9e3676f7300d624c39403bf4380c7b2f58f2133f9cbcc82be3ceb4097c877  aufs-util-20161219.tar.gz
156ffb064b90abb1a035f8fcd9db20c6b0ee6ce7f4d9aa2029549d32d93edce0ac59f9a4ae110e9a0ca088af6e360574055af0f320ee5552648d5abaa8b93211  0001-implement-glibc-compatible-nftw-if-libc-does-not-pro.patch
4481a470ec029b3af5da5f69023ab62f49a889677c828944a4f3dc0802fe163f5ac5c55576e53f0cd656e92d7e503dd6e874184e22e9ff3651aa81073e6161d6  0002-add-aufs_type.h-from-linux-header.patch
f9d877de3bb93e4b874476ee956f3bfb26b73ac00eecf52b9a5ffabae19b2085abb7e1647db4a7a459d0b0efc59f1e0282ba1407a1202cf937ed52781ff661fa  0003-make-install-compatible-with-busybox-install.patch"
